home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presentation Library 1993 Winter / The Apple Reference & Presentations Library CD Winter 93 - Partner Edition.7z / Image.iso / Applications / Technical Publishing / Aldus PageMaker 4.2 / Aldus / PP1.5.1.RSRC / PP1.5.1.RSRC.adf / DICT_101 < prev    next >
Text File  |  1991-12-09  |  5KB  |  218 lines

  1. /AldusSepsDict 100 dict def
  2. AldusSepsDict begin
  3. /ASD_4array 4 array def
  4. /settransfer systemdict /settransfer get def
  5. /ASD_something_on_page false def
  6. /ASD_inverted? 0 currenttransfer exec 1 eq def
  7. /ASD_setgray 
  8. {
  9. systemdict /setgray get exec
  10. }bind def
  11. /setgray    
  12. {
  13. ASD_sepink (process black) eq 
  14. /AldusDict2 where 
  15. {pop AldusDict2 begin AldusVersion 209 ge AldusRev 30 ge and end
  16. {AldusDict2 /AD_NonSepPat get}{false}ifelse 
  17. }{false}ifelse or not 
  18. {pop 1} if ASD_setgray
  19. }bind def
  20. /setcmykcoloroverprint
  21. {
  22. pop pop pop pop
  23. }bind def
  24. /findcmykcustomcolor    
  25. {
  26. 5/packedarray where{pop packedarray}{array astore readonly}ifelse
  27. }bind def
  28. /setcmykcolor    
  29. {            
  30. }def
  31. /setcustomcolor     
  32. {
  33. exch aload pop dup ASD_tolower ASD_toprocess?
  34. {pop 4 {4 index mul 4 1 roll} repeat setcmykcolor pop}
  35. {dup ASD_tolower ASD_spotinkoverprint? ASD_setinkoverprint
  36. 5 1 roll 4 {pop} repeat ASD_tolower ASD_sepink eq
  37. {1 exch sub ASD_setgray}
  38. {pop 1 ASD_setgray}ifelse
  39. } ifelse
  40. } bind def
  41. /setseparationgray    
  42. {
  43. ASD_setgray AldusSepsDict begin 
  44. /currentoverprint false def /ASD_inkoverprint false def end
  45. }bind def
  46. /ASD_ucrk .5 def        
  47. /ASD_ucrm .31 def        
  48. /ASD_ucry .48 def        
  49. /ASD_boostk 1.25 def    
  50. /ASD_cvt1
  51. {
  52. 1 exch sub 3 1 roll
  53. }bind def
  54. /ASD_cvt2
  55. {
  56. 0 2 copy lt{exch}if pop 3 1 roll
  57. }bind def
  58. /setrgbcolor                                            
  59. {
  60. ASD_cvt1 ASD_cvt1 ASD_cvt1                            
  61. 3 copy 2 copy gt{exch}if pop 2 copy gt{exch}if pop    
  62. ASD_ucrk sub 0 2 copy lt{exch}if pop                
  63. 4 1 roll                                            
  64. 3 {3 index sub 3 1 roll} repeat                        
  65. 1 index ASD_ucry mul sub ASD_cvt2                    
  66. 1 index ASD_ucrm mul sub ASD_cvt2                    
  67. 3 1 roll                                            
  68. 4 -1 roll ASD_boostk mul                            
  69. setcmykcolor
  70. }bind def
  71. /sethsbcolor
  72. {
  73. sethsbcolor currentrgbcolor setrgbcolor
  74. }bind def
  75. /currentoverprint false def
  76. /ASD_inkoverprint false def
  77. /ASD_DCS? false def
  78. /setoverprint    
  79. {
  80. AldusSepsDict /currentoverprint 3 -1 roll put
  81. }bind def
  82. /imagemask
  83. {
  84. ASD_draw? 
  85. {systemdict /imagemask get exec}
  86. {gsave nulldevice systemdict /imagemask get exec grestore}ifelse
  87. }bind def    
  88. /image    
  89. ASD_DCS?
  90. {systemdict /image get exec AldusSepsDict /ASD_something_on_page true put}
  91. {ASD_sepink (process black) eq 
  92. {systemdict /image get exec AldusSepsDict /ASD_something_on_page true put}
  93. {gsave ASD_inverted? {{pop 0}}{{pop 1}}ifelse
  94. settransfer systemdict /image get exec grestore
  95. }ifelse
  96. }ifelse
  97. }def    
  98. /customcolorimage    
  99. {
  100. aload pop 5 1 roll 4{pop}repeat ASD_tolower ASD_sepink eq 
  101. {systemdict /image get exec AldusSepsDict /ASD_something_on_page true put}    
  102. {gsave ASD_inverted? {{pop 0}}{{pop 1}}ifelse
  103. settransfer systemdict /image get exec grestore}ifelse
  104. }def    
  105. /ASD_invbuf        
  106. {
  107. 0 1 2 index length 1 sub
  108. {
  109. dup 2 index exch get 255 exch sub 2 index 3 1 roll put
  110. }for
  111. }bind def
  112. /separationimage
  113. {
  114. systemdict /image get exec
  115. }bind def
  116. /stroke
  117. {
  118. ASD_draw? {stroke}{newpath} ifelse
  119. }bind def
  120. /fill
  121. {
  122. ASD_draw? {fill}{newpath} ifelse
  123. }bind def
  124. /eofill
  125. {
  126. ASD_draw? {eofill}{newpath} ifelse
  127. }bind def
  128. /show
  129. {
  130. ASD_draw? {show}{pop} ifelse
  131. }bind def
  132. /ashow
  133. {ASD_draw? {ashow}{pop pop pop} ifelse
  134. }bind def
  135. /widthshow
  136. {
  137. ASD_draw? {widthshow}{pop pop pop pop} ifelse
  138. }bind def
  139. /awidthshow
  140. {
  141. ASD_draw? {awidthshow}{pop pop pop pop pop pop} ifelse
  142. }bind def
  143. /kshow
  144. {ASD_draw? {kshow}{pop pop} ifelse
  145. }bind def
  146. /ASD_toprocess?
  147. {
  148. ASD_candink copy dup 
  149. 0 1 inks length 1 sub
  150. {inks exch get aload pop 4 -2 roll eq
  151. {exch pop exit}{pop pop dup}ifelse
  152. }for 
  153. exch pop
  154. }bind def
  155. /ASD_spotinkoverprint?    
  156. {
  157. ASD_candink copy dup 
  158. 0 1 inks length 1 sub
  159. {inks exch get aload pop 4 -2 roll eq
  160. {pop exit}{pop pop dup}ifelse
  161. }for exch pop
  162. }bind def
  163. /ASD_setinkoverprint    
  164. {
  165. AldusSepsDict /ASD_inkoverprint 3 -1 roll put
  166. }bind def
  167. /ASD_processinkoverprint?
  168. {
  169. inks exch get 1 get
  170. }bind def
  171. /ASD_pure? 
  172. {
  173. aload pop 0 ne exch 0 ne 3 -1 roll 0 ne 4 -1 roll 0 ne 0 5 1 roll
  174. 3 -1 0
  175. {exch true eq
  176. {dup 0 gt{2 add dup -1 roll 1 add exch 1 sub 1 roll}
  177. {pop 1 add}ifelse}
  178. {pop}ifelse}
  179. for
  180. 1 eq
  181. }def
  182. /ASD_overprintprocess    
  183. {
  184. false ASD_setinkoverprint 
  185. dup ASD_pure?    
  186. {aload pop mark 5 1 roll
  187. 3 -1 0{exch 0 ne    
  188. {ASD_processinkoverprint?
  189. {true ASD_setinkoverprint exit}if
  190. }{pop}ifelse
  191. }for cleartomark
  192. }{pop}ifelse
  193. }bind def
  194. /ASD_draw?
  195. {
  196. currentoverprint ASD_inkoverprint or not currentgray 1 ne dup
  197. {AldusSepsDict /ASD_something_on_page true put}if or
  198. }bind def
  199. /ASD_tolower{    
  200. ASD_candink copy dup -1 3 1 roll
  201. {3 -1 roll 1 add 3 1 roll dup dup 65 ge exch 90 le and 
  202. {exch dup 3 -1 roll 32 add 4 -1 roll dup 5 1 roll exch put}{pop}ifelse
  203. }forall 
  204. exch pop
  205. }bind def
  206. /ASD_#copies 1 def
  207. /ASD_candink 100 string def    
  208. /ASD_showpage 
  209. ASD_something_on_page 
  210. {userdict /#copies 1 put ASD_#copies{copypage}repeat 
  211. AldusSepsDict /ASD_something_on_page false put}if 
  212. erasepage
  213. } bind def
  214. /showpage {} def
  215. end    
  216.